import {createRouter,createWebHistory} from 'vue-router'

const router=createRouter({
  history:createWebHistory(),
  routes:[
     {
      path:'/',
      redirect:'/register'
     },
     {
      path:'/add',
      component:()=>import("../views/Add.vue")
     },
     {
      path:'/show',
      component:()=>import("../views/Show.vue")
     },
     {
      path:'/update',
      component:()=>import("../views/Update.vue")
     },
     {
      path:'/register',
      component:()=>import("../views/Register.vue")
     },
     {
      path:'/display',
      component:()=>import("../views/Display.vue")
     }
  ]
})

export default router